#pragma once
#include "../DataStructsDef.h"
#include <vector>
class CPCGGonioFilesIO
{
public:
	CPCGGonioFilesIO(void);
	virtual ~CPCGGonioFilesIO(void);
	void ReadGonioFile(const char* strFileName, unsigned int iBand);
	bool ComputeNDFInverse(ID3D11Device* pd3dDevice, TCHAR* strImgName, char* str1DPlotFile, unsigned int iWidth, unsigned int iHeight, float fRotateAngle=0.0f);
	bool GenerateComparison(unsigned int i1DNDFDim, std::vector<NDFItem>& arrNDFData);
	void SetupIORofMetal();
public:
	unsigned int m_iCurWavelengthBand;
	CGrowableArray<PCGGonioMeasuredData> m_arrBRDFData;

	METALTYPE m_iCurMetalType;
	float m_fIORIncident;
	float m_fIORTransReal;
	float m_fIORTransImg;
};

